﻿<%@ Page Language="C#" MasterPageFile="~/JobSeeker/JobSeekerMaster.master" AutoEventWireup="true" CodeFile="SavedJobs.aspx.cs" Inherits="JobSeeker_SavedJobs"  %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">

    <%--  <link href="../CSS/npljobs.css" rel="stylesheet" />
    <link href="../CSS/hover.css" rel="stylesheet" media="screen" />
    <link href="../CSS/style.css" rel="stylesheet" />--%>

    <%--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>--%>
    <script type="text/javascript" src="../Scripts/JobSeekerSavedJobs.min.js" ></script>


    <asp:UpdatePanel ID="upJobList" runat="server" UpdateMode="Conditional" RenderMode="Inline">
        <ContentTemplate>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="50" AssociatedUpdatePanelID="upJobList">
                <ProgressTemplate>
                    <div id="progressBackgroundFilter"></div>
                    <div id="processMessage">
                        <img alt="Loading..." src="/img/please_wait.gif" />
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:HiddenField ID="hdYesNo" runat="server" />
            <div class="edit-profile-form">
                <div class="row form-row">
                    <!--Form Start Here-->
                    <div class="row form-body submit">
                        <div>
                            <asp:Label ID="Label1" runat="server" Font-Size="Medium" Font-Italic="true" Font-Bold="true" ForeColor="Green"></asp:Label>
                        </div>
                        <div class="form-horizontal period" role="form">
                            <div class="form-group">
                                <div class="col-md-12">
                                    <label class="col-md-2 control-label">Search by :</label>
                                    <div class="col-md-2">
                                        <asp:DropDownList ID="ddlSearchBy" runat="server" CssClass="form-control">
                                            <asp:ListItem Text="Job Title" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Location" Value=""></asp:ListItem>
                                            <asp:ListItem Text="Deadline"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>

                                    <div class="col-md-3 only-padding">
                                        <asp:TextBox ID="txtSearch" Width="450px" runat="server" CssClass="form-control" autocomplete="off" EnableViewState="false" AutoCompleteType="None" AutoPostBack="true" OnTextChanged="txtSearch_TextChanged"></asp:TextBox>
                                        <label id="lblMsg" runat="server"></label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--Form End Here-->
                </div>
            </div>
            <!-- Panel Body Start Here-->


            <!-- Panel Body Start Here-->
            <div>
                <div class="panel-body">
                    <!--Job List Table-->
                    <div class="job-list-table">
                        <asp:GridView CssClass="table" HeaderStyle-BorderStyle="None" BorderStyle="None" GridLines="None" HeaderStyle-BorderWidth="0px" ID="gvJobList" runat="server" OnRowDataBound="gvJobList_RowDataBound" AutoGenerateColumns="false" AllowSorting="true" OnSorting="gvJobList_Sorting">
                            <Columns>
                                <asp:BoundField HeaderText="SavedJobID" DataField="SavedJobID" ItemStyle-CssClass="hide" HeaderStyle-CssClass="hide" />
                                <asp:TemplateField HeaderText="Job Title" SortExpression="JobTitle">
                                    <ItemTemplate>
                                        <img style="height: 50px; width: 60px; float: left; padding-right: 10px;" src='<%# Eval("CompanyImage") %>' />
                                        <h4><a target="_blank" href='JobDetails.aspx?jID=<%# Eval("JobID") %>&sourcePage=SavedJobs'><%# Eval("JobTitle") %></a></h4>
                                        <p>
                                            <%# Eval("CompanyName") %>
                                        </p>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Location/Published">
                                    <ItemTemplate>
                                        <label style="color: black;"><%# Eval("Location") %></label><br>
                                        <asp:Label CssClass="application-deadline" runat="server" Text='<%# Eval("PostedDate","{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Deadline">
                                    <ItemTemplate>
                                        <asp:Label CssClass="deadline-sticker" runat="server" ID="lblApplicationDateline" Text='<%# Eval("ApplicationDateline") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkboxSelectAll" runat="server" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkDelete" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                <label style="color: Red; font-weight: bold; margin-left: 1%;">No records found !</label>
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </div>
                    <!--Job List Table-->


                    <!--Bottom Pagination Start-->
                    <div class="row bottom-pagination-custom">
                        <div class="col-md-8">
                            <asp:Repeater ID="rptPager" runat="server">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>' Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>

                        <div class="col-md-4">
                            <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_Changed">
                                <asp:ListItem Text="5" Value="5" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="30" Value="30" />
                                <asp:ListItem Text="40" Value="40" />
                                <asp:ListItem Text="50" Value="50" />
                            </asp:DropDownList>
                        </div>
                    </div>
                    <!--Bottom Pagination End-->

                </div>
            </div>
            <!--Save All Information Start Here-->
            <div class="edit-profile-form">
                <div class="row form-row">
                    <!--Form Start Here-->
                    <div class="row form-body submit">
                        <div>
                            <asp:Label ID="lblSaveMsg" runat="server" Font-Size="Medium" Font-Italic="true" Font-Bold="true" ForeColor="Green"></asp:Label>
                        </div>
                        <div class=" col-md-4 pull-right text-right">
                            <asp:Button ID="btnDeleteSeledRows" OnClick="btnDeleteSeledRows_Click" Enabled="false" runat="server" Text="Delete" CssClass="btn btn-primary orange-gradiant float-shadow" />
                            <asp:Button ID="btnShowAll" runat="server" Text="Show All" OnClick="btnShowAll_Click" CssClass="btn btn-primary orange-gradiant float-shadow" />
                        </div>
                    </div>
                    <!--Form End Here-->
                </div>
            </div>


            <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
            <ajax:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup"
                CancelControlID="btnNo" BackgroundCssClass="modalBackground">
            </ajax:ModalPopupExtender>

            <asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="100px" Width="400px" Style="display: none">
                <div id="confirmOverlay">
                    <div id="confirmBox">

                        <h1>Delete saved job(s)</h1>
                        <p id="lblText" runat="server"></p>

                        <div id="confirmButtons">
                            <asp:ImageButton ID="btnYes" OnClick="btnYes_Click" runat="server" ImageUrl="~/Images/btnyes.jpg" OnClientClick="" />
                            <asp:ImageButton ID="btnNo" runat="server" ImageUrl="~/Images/btnNo.jpg" OnClientClick="" />
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <!--Save All Information End Here-->
            <!-- Panel Body Start Here-->
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

